
<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div class="doc-manage" data-options="border:false">
	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
		
		<p>
			<span class="badge">提示</span>
			<font color="red"> 在此,你可以对未审核文档进行审核操作!
		</p>
	</div>
	
	 <div id="doc-detail" class="doc-detail">
		<div  class="doc-detail-list-btn">
			
		</div>
	</div>
				
	<table id="dg-detail" class="easyui-datagrid dg-detail" title="文档列表"
		data-options="rownumbers:true,
		animate: true,									
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',									
		fitColumns: true,
		checkOnSelect:true,
		pagination : true,
		selectOnCheck:true					
		">
		
		<thead>						
			<tr>
				<th field="ck" checkbox="true" ></th>
				<th field="name" width="100" align="left" halign="center">文档标题</th>
				<th field="state_id" width="30" align="center" data-options="{
					formatter:function(value,row,index){
						if(value && value==1){
							return '是'
						}
						return '否';						
					}
				}">是否公开</th>
				<th field="createTime" width="60" align="center">创建时间</th>
				<th field="public_date" width="60" align="center">发布时间</th>
				<th field="public_dept_name" width="60" align="center">发布部门</th>
				<th field="public_user_name" width="60" align="center">发布人</th>			
				<th field="comment" width="30" align="center">备注</th>
				<th field="status" width="30" align="center" data-options="{
					formatter:function(value,row,index){
						if(value){
							switch(value){
								case '0':
								return '<span><font color=blue>已提交</font></span>';
								break;
								case '1':
								return '<span><font color=green>审核通过</font></span>';
								break;
								case '-1':
								return '<span><font color=red>未通过</font></span>';
								break;
							}
						}
						return null;						
					}
				}">审核状态</th>							
			</tr>
		</thead>
		
	</table>
	
</div>


<script>

requirejs(['docListPage','party','domReady!'],function(dept,party,doc){
	dept.init({
		doc:doc,
		onWindowClose:party.onClose,
		auditEnable:true,
		queryMethod:'getAuditListDomain'
	});		
});	

</script>
